/**
 * This class will implement the worker entity of our program.
 * 
 * @author Gil Levinson
 * @author Boris Fradlis
 * @author Yogev Levi
 * @author Hila Porat
 */

package vcpClasses;

// Start of Worker **************************************************************

public class Worker extends User{
	
	// Class variables **********************************************************
	
	private int workerNumber;
	private String workerRole;
	private int workerAssociation;
	
	// Constructors ************************************************************
	
	/**
	 * Empty constructor
	 */
	
	public Worker() {}

	/**
	 * Construct instance using other User
	 * @param user the user representing this worker
	 */
	
	public Worker(User user){
		super(user);
		this.setWorkerNumber(0);
		this.setWorkerRole(new String());
		this.setWorkerAssociation(0);
	}
	
	// Getters and Setters ********************************************************

	/**
	 * @return the workerNumber
	 */
	public int getWorkerNumber() {
		return workerNumber;
	}

	/**
	 * @param workerNumber the workerNumber to set
	 */
	public void setWorkerNumber(int workerNumber) {
		this.workerNumber = workerNumber;
	}

	/**
	 * @return the workerRole
	 */
	public String getWorkerRole() {
		return workerRole;
	}

	/**
	 * @param workerRole the workerRole to set
	 */
	public void setWorkerRole(String workerRole) {
		this.workerRole = workerRole;
	}

	/**
	 * @return the workerAssociation
	 */
	public int getWorkerAssociation() {
		return workerAssociation;
	}

	/**
	 * @param workerAssociation the workerAssociation to set
	 */
	public void setWorkerAssociation(int workerAssociation) {
		this.workerAssociation = workerAssociation;
	}

	
}
